package com.example.arithmeticleetcode.leetcode.dec;

/**
 * @program: arithmetic-leetcode
 * @description:
 * @author: FangZhen
 * @create: 2020-12-14 13:39
 **/
public class Demo10 {

    public static void main(String[] args) {
        System.out.println((48 ^ 13));
    }

    public static int minPartitions(String n) {
        char[] chars = n.toCharArray();
        int maxValue = 48;
        for (char aChar : chars) {
            maxValue = Math.max(maxValue, aChar);
        }
        return maxValue - 48;
    }
}
